package com.ttt.service;

import com.ttt.mapper.impl.UserLoginMapperImpl;

import java.sql.SQLException;

public class UserLoginService {



    public boolean findByUser(String id) throws SQLException {
        UserLoginMapperImpl userLoginMapper = new UserLoginMapperImpl();
        boolean byUser =userLoginMapper.findByUser(id);
        return byUser;
    }

    public String findByUserPassword(String id) throws SQLException {
        UserLoginMapperImpl userLoginMapper = new UserLoginMapperImpl();
        String password = userLoginMapper.findPassword(id);
        System.out.println(" UserLoginService password = " + password);
        return password;
    }
}
